The Green Language Exception System
نویسنده
چکیده
Exception systems have become popular because they uncouple error detection and handling thus allowing us to produce better software. However, the exception handling systems of many object-oriented languages benefit very little from object-oriented programming. The catch clauses following a try block are isolated pieces of code: they do not belong to classes and cannot be reused. This paper presents the object-oriented exception system of the Green language, which fully uses the objectoriented programming features. That includes the use of classes, types and subtyping, objects, and inheritance. The result is a powerful exception system completely integrated with the language.
منابع مشابه
UML Collaboration semantics A green ( ? ) paper
1. The class. Any abstraction is based on a choice of what is important and what isn't. The highly successful and useful class abstraction is the result of one such choice. It is useful for modeling many interesting aspects of objects. A notable exception is the modeling of system behavior; the class abstraction deals in sets of objects and is not suited for modeling how an object sends a stimu...
متن کاملA Two-Stage Green Supply Chain Network with a Carbon Emission Price by a Multi-objective Interior Search Algorithm
This paper presented a new two-stage green supply chain network, in which includes two innovations. Firstly, it presents a new multi-objective model for a two-stage green supply chain problem that considers the amount o...
متن کاملEnhancing CIMOSA with Exception Handling
CIMOSA (Open System Architecture for CIM) [2], an architecture for the modelling of manufacturing applications, does not provide a facility for exception definition and handling. Exceptions, traditionally associated to programming language and operating systems, are necessary in all types of languages, including specification languages. Our contribution consists of the enhancement of the CIMOSA...
متن کاملSpecifying and Dynamically Monitoring the Exception Handling Policy
The exception handling policy of a system comprises the set of design rules that specify its exception handling behavior (how exceptions should be handled and thrown). Such policy is usually undocumented and implicitly defined by the system architect. For this reason, developers may think that by just including catch-blocks in the code they can deal with exception conditions. This lack of infor...
متن کاملA Portable Approach to Exception Handling in Workflow Management Systems
Although the efforts from the Workflow Management Coalition (WfMC) led to the definition of a standard process definition language (XPDL), there is still no standard for the definition of expected exceptions in workflows. Yet, the very few Workflow Management Systems (WfMS) capable of managing exceptions, provide a proprietary exception handling unit, preventing workflow exception definitions f...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Comput. J.
دوره 47 شماره
صفحات -
تاریخ انتشار 2004